<!--<?php
if ($type=='add') {print <<<EOT
-->
<form action="$ajax_basename" method="post" name="form1" onsubmit="return false;" enctype="multipart/form-data">
<table cellspacing="0" cellpadding="0" width="500">
	<tbody>
		<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>添加内容</th></tr>

		<tr>
			<td>标题 :</td>
			<td>
				<input type="text" class="input input_wb" size="40" name="title" value="$default[$key]">
				
			</td>
		</tr>
		<tr>
			<td>标题样式 :</td>
			<td>
				<span class="pwnew tac">
					<span title="粗体字"><b><a onclick="styleOnclick(this,'css[b]')" class="$stylename[1]">B</a></b></span>
					<span title="斜体字"><i><a onclick="styleOnclick(this,'css[i]')" class="$stylename[2]">I</a></i></span>
					<span title="下划线"><u><a onclick="styleOnclick(this,'css[u]')" class="$stylename[3]">U</a></u></span>
					<span id="color_show" style="width:30px;margin-top:1px;border:1px solid $tablecolor;float:left;height:14px;background:$titlecolor;cursor:pointer;" title="点击取消颜色" onclick="colorCancel()"></span>
					<span title="颜色选择"><a class="two tal" onclick="showColorPicker(this,'title1',function(){pickReback(color_picker)})"><img src="$imgpath/pickcolor.gif"  /></a></span>
					<input id="title1" name="css[color]" type="hidden" value="$titlecolor" />
					<input id="css[b]" name="css[b]" type="hidden" value="{$titledetail[1]}" />
					<input id="css[i]" name="css[i]" type="hidden" value="{$titledetail[2]}" />
					<input id="css[u]" name="css[u]" type="hidden" value="{$titledetail[3]}" />
				</span>
			</td>
		</tr>

		<tr>
			<td>链接地址 :</td>
			<td>
				<input type="text" class="input input_wb" size="40" name="url" value="$default[$key]" >
			</td>
		</tr>

		<tr>
			<td>位置：</td>
			<td><input type="text" name="offset" class="input input_wd"></td>
		</tr>
	</tbody>
</table>
<ul><li style="text-align:center;padding:4px 0;">
<input type="hidden" name="hid" value="$hid">
<input type="hidden" name="model" value="$model">
<input type="hidden" name="type" value="add">
<input type="hidden" name="step" value="2">
<span class="btn"><span><button type="button" name="ajaxsubmit" onclick="ajax.submit(this.form,ajax.guide);" onfocus="blur();">提交</button></span></span>
</li></ul>
</form>
<!--
EOT;
}else{print <<<EOT
-->
<form action="$ajax_basename" method="post" name="form1" onsubmit="return false;" enctype="multipart/form-data">
<table cellspacing="0" cellpadding="0" width="500">
	<tbody>
		<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>编辑内容</th></tr>

		<tr>
			<td>标题 :</td>
			<td>
				<input type="text" class="input input_wb" size="40" name="title" value="$push[title]">
				
			</td>
		</tr>
		<tr>
			<td>标题样式 :</td>
			<td>
				<span class="pwnew tac">
					<span title="粗体字"><b><a onclick="styleOnclick(this,'css[b]')" class="$stylename[1]">B</a></b></span>
					<span title="斜体字"><i><a onclick="styleOnclick(this,'css[i]')" class="$stylename[2]">I</a></i></span>
					<span title="下划线"><u><a onclick="styleOnclick(this,'css[u]')" class="$stylename[3]">U</a></u></span>
					<span id="color_show" style="width:30px;margin-top:1px;border:1px solid $tablecolor;float:left;height:14px;background:$titlecolor;cursor:pointer;" title="点击取消颜色" onclick="colorCancel()"></span>
					<span title="颜色选择"><a class="two tal" onclick="showColorPicker(this,'title1',function(){pickReback(color_picker)})"><img src="$imgpath/pickcolor.gif"  /></a></span>
					<input id="title1" name="css[color]" type="hidden" value="$titlecolor" />
					<input id="css[b]" name="css[b]" type="hidden" value="{$titledetail[1]}" />
					<input id="css[i]" name="css[i]" type="hidden" value="{$titledetail[2]}" />
					<input id="css[u]" name="css[u]" type="hidden" value="{$titledetail[3]}" />
				</span>
			</td>
		</tr>

		<tr>
			<td>链接地址 :</td>
			<td>
				<input type="text" class="input input_wb" size="40" name="url" value="$push[url]" >
			</td>
		</tr>

		<tr>
			<td>位置：</td>
			<td><input type="text" name="offset" class="input input_wd" value="$push[offset]"></td>
		</tr>
	</tbody>
</table>
<ul><li style="text-align:center;padding:4px 0;">
<input type="hidden" name="hid" value="$hid">
<input type="hidden" name="id" value="$id">
<input type="hidden" name="model" value="$model">
<input type="hidden" name="type" value="edit">
<input type="hidden" name="step" value="2">
<span class="btn"><span><button type="button" name="ajaxsubmit" onclick="ajax.submit(this.form,ajax.guide);" onfocus="blur();">提交</button></span></span>
</li></ul>
</form>
<!--
EOT;
}?>-->